<?php 
	include '../../db.php';
	$salesId = mysql_real_escape_string($_POST['salesID']);
	$salesName =  mysql_real_escape_string($_POST['sName']);
	$salesEmail =  mysql_real_escape_string($_POST['sEmail']);
	$salesUser =  mysql_real_escape_string($_POST['sUser']);
	$salesPassword =  mysql_real_escape_string($_POST['sPass']);
	 
	$sql = "UPDATE sales SET salesName='$salesName', salesEmail='$salesEmail', salesUser='$salesUser', salesPassword='$salesPassword' WHERE salesID='$salesId'";
	@mysql_query($sql);	
	header("Location:../../led-master.php?mngr=sale&subpg=edit&action=saleeditsuccess");	
	
?>